from rest_framework import serializers

from apps.goods.models import SpecificationOption


class SpecsOptionsSerializers(serializers.ModelSerializer):
    spec = serializers.StringRelatedField()
    spec_id = serializers.IntegerField()
    class Meta:
        model = SpecificationOption
        fields = "__all__"
